Tamara\Wp\Plugin\TamaraCheckout D

Total Complexity 310
Dependencies 21
Dependents 17
Total lines 2,349
Lines of code 1,266
Logical lines of code 584
Comment lines 660
Methods 117
Properties 6

Methods 117

Method Rating Maintainability Complexity Lines of code
isProductPriceValid()
A
49 16 29
tamaraRefundPayment()
A
40 11 57
tamaraCartPopupWidget()
A
49 11 26
cancelOrder()
A
50 11 25
overrideWcClearCart()
A
52 11 23
tamaraProductPopupWidget()
A
50 10 25
updateTamaraCheckoutDataToOrder()
A
51 8 27
getAppropriateVariationProductPrice()
S
58 8 15
handleTamaraApi()
S
50 6 31
authoriseOrder()
S
58 6 15
forceRequireBillingPhone()
S
60 6 12
adjustTamaraPaymentTypesOnCheckout()
S
53 5 22
updateWcOrderPaymentMethodAccordingToTamaraOrder()
S
50 4 31
updatePayByInstalmentSettingUrl()
S
64 6 8
initPlugin()
S
44 3 43
getTotalToCalculate()
S
60 5 13
registerTamaraCustomOrderStatuses()
S
43 1 65
forceCaptureTamaraOrder()
S
48 3 34
getInstalmentPlanAccordingToProductVariation()
S
56 4 18
registerServices()
S
57 4 18
enqueueScripts()
S
56 4 17
getAllProductIdsInCart()
S
57 4 16
isTamaraAdminSettingsScreen()
S
68 5 6
forceAuthoriseTamaraOrder()
S
50 3 30
populateMinAmountArrayOfEnabledPayInXs()
S
59 4 14
populateMaxAmountArrayOfEnabledPayInXs()
S
60 4 14
tamaraOrderReceivedText()
S
61 4 13
getDisplayedProductPrice()
S
61 4 13
enqueueAdminSettingScripts()
S
61 4 12
handleTamaraFailureUrl()
S
53 3 23
handleTamaraCancelUrl()
S
53 3 23
getTamaraOrderByWcOrderId()
S
56 3 19
addTamaraAuthoriseFailedMessage()
S
65 4 8
tamaraAuthoriseHandler()
S
60 3 14
getMinAmountOfEnabledPriorityInstalment()
S
62 3 12
getMaxAmountOfEnabledPriorityInstalment()
S
62 3 12
tamaraCheckoutParams()
S
53 2 26
updateOrderStatusAndAddOrderNote()
S
62 3 11
isOrderTamaraApproved()
S
68 3 7
initInstanceWithConfig()
S
67 3 8
showTamaraCartProductPopupWidget()
S
73 3 5
logMessage()
S
63 3 10
isRestRequest()
S
72 3 4
getDisplayedProductId()
S
66 3 9
getDisplayedProductCategoryIds()
S
65 3 10
getAllTamaraGatewayIds()
S
60 1 20
addCronJobTriggerScript()
S
58 1 20
addTamaraCustomOrderStatuses()
S
57 1 17
getPayInXIds()
S
62 1 16
checkWooCommerceExistence()
S
64 2 9
showTamaraProductPopupWidget()
S
74 2 5
getAdminSettingLink()
S
66 2 8
adjustBillingPhoneDescription()
S
68 2 7
performCron()
S
68 2 8
getPriorityInstalmentPeriod()
S
64 2 10
getUpdatedPhoneNumberOnCheckout()
S
63 2 10
getAllProductCategoryIdsInCart()
S
64 2 9
__construct()
S
70 2 6
getTamaraOrderStatus()
S
69 2 7
addRefundNote()
S
68 2 7
activatePlugin()
S
70 2 6
doAuthoriseOrderAction()
S
72 2 5
getTamaraOrderId()
S
69 2 7
logMessageFilePath()
S
77 2 3
updateTamaraCheckoutParams()
S
64 1 11
calculateInstalmentPlan()
S
63 1 10
getBaseUrl()
S
82 1 3
isExcludedProductCategory()
S
78 1 3
isExcludedProduct()
S
78 1 3
getExcludedProductCategoryIds()
S
71 1 5
getWCTamaraGatewayPayInXService()
S
75 1 4
getExcludedProductIds()
S
71 1 5
getWCTamaraGatewayCheckoutService()
S
80 1 3
isTamaraGateway()
S
79 1 3
getWCTamaraGatewayPayNextMonthService()
S
80 1 3
getTamaraPopupWidgetPosition()
S
79 1 3
getWCTamaraGatewayPayByInstalmentsService()
S
80 1 3
populateRestApiRequest()
S
77 1 4
getWCTamaraGatewayPayNowService()
S
80 1 3
getWCTamaraGatewayService()
S
80 1 3
isPayByLaterEnabled()
S
78 1 3
getServiceView()
S
79 1 3
getCustomerPhoneNumber()
S
82 1 3
getService()
S
80 1 3
possiblyAddTamaraSingleCheckout()
S
66 1 8
mergeTamaraPaymentMethodsAfterPayLaterOffset()
S
65 1 9
isAfterTamaraAuthorised()
S
79 1 3
getAfterTamaraAuthorisedStatuses()
S
69 1 9
isSupportedCountry()
S
74 1 4
getTamaraCartPopupWidgetPosition()
S
79 1 3
isPayInXEnabled()
S
77 1 3
isPayNowEnabled()
S
78 1 3
isCreditPrecheckEnabled()
S
78 1 3
noticeNonWooCommerce()
S
70 1 6
registerTamaraPaymentGateway()
S
76 1 4
deactivatePlugin()
S
81 1 3
preventOrderCancelAction()
S
71 1 6
isOrderAuthorised()
S
78 1 3
tamaraLoadTextDomain()
S
71 1 5
logMessageFileUrl()
S
78 1 3
onSaveSettings()
S
80 1 3
getWCTamaraGatewayOptionKey()
S
80 1 3
getWCTamaraGatewayOptions()
S
79 1 3
isCartWidgetPopupDisabled()
S
78 1 3
isPayByInstalmentsEnabled()
S
78 1 3
isWidgetPopupDisabled()
S
78 1 3
isAlwaysShowWidgetPopupEnabled()
S
78 1 3
setRestApiRequest()
S
81 1 3
getRestApiRequest()
S
82 1 3
isPayLaterPDPEnabled()
S
78 1 3
isCronjobEnabled()
S
78 1 3
isForceBillingPhoneEnabled()
S
78 1 3
isCustomLogMessageEnabled()
S
78 1 3
removeTrailingSlashes()
S
79 1 3
isTamaraGatewayEnabled()
S
78 1 3
addSettingsLinks()
S
71 1 5
addCustomRewriteRules()
S
68 1 7